﻿@using System.Web.Mvc
@using System.Web.Mvc.Ajax
@using System.Web.Mvc.Html
@using SharepointPlugin.Models;
@inherits System.Web.Mvc.WebViewPage<List<SpointItem>>
@functions{
    string getArticleUrl(SpointItem a)
    {
        return string.Format(ViewBag.UrlTemplate, a.Item.ID);
    }         
}
<ul>
@foreach(var a in Model)
{
    <li><a href="@Html.Raw(getArticleUrl(a))">@a.Item.Title</a></li>
}
</ul>